import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state:{
    isLogin:false,
    scroll:0,
    port:'',
    name:'',
    ConDisplay:false,
    TitleData:0,
    countId:'',
  },
  mutations: {
    isLoginChange(state,jude){
       state.isLogin = jude
    },
    UpdateScroll(state,num){
       state.scroll = num
    },
      AddPort(state,value){
         state.port = value
      },
      AddName(state,value){
        state.name = value
      },
      SetDisplay(state,value){
         state.ConDisplay = value
      },
      SetTitleData(state,value){
         state.TitleData = value;
      },
      SetCountId(state,value){
        state.countId = value
      }
  },
  actions: {
  },
  modules: {
  }
})
